//
//  NewBuyerTableViewCell.m
//  YiFei
//
//  Created by yangyan on 16/9/2.
//  Copyright © 2016年 yous. All rights reserved.
//

#import "NewBuyerTableViewCell.h"

@implementation NewBuyerTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addView];
    }
    return self;
}

-(void)addView{
    self.label=[[UILabel alloc] init];
    self.label.textColor=[UIColor blackColor];
    [self sizeToFit];
    self.label.font=[UIFont systemFontOfSize:14.0];
    self.label.textAlignment=NSTextAlignmentCenter;
    self.label.frame=CGRectMake(0, 5, (WIDTH-20)/3, 40);
    [self.contentView addSubview:self.label];
    
    UIView *lineV=[[UIView alloc] init];
    [lineV sizeToFit];
    lineV.backgroundColor=[UIColor colorWithRed:234/255.0 green:234/255.0 blue:234/255.0 alpha:1.0];
    lineV.frame=CGRectMake(0, 50, WIDTH, 1);
    [self.contentView addSubview:lineV];
    
    self.textF=[[UITextField alloc] init];
    [self.textF sizeToFit];
    self.textF.font=[UIFont systemFontOfSize:14.0];
    self.textF.textColor=[UIColor lightGrayColor];
    self.textF.frame=CGRectMake(CGRectGetMaxX(self.label.frame), 5, WIDTH-CGRectGetMaxX(self.label.frame)-80, 40);
    [self.contentView addSubview:self.textF];
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
